package com.sc.nft.entity.vo;

import cn.hutool.core.util.DesensitizedUtil;
import cn.hutool.core.util.StrUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
@Data
public class NumberQueryListVO {

    @ApiModelProperty("下注结果,他是组合好的,这个结果是用户下注的.")
    private String lotteryDrawResult;

    @ApiModelProperty("中奖账号,脱敏")
    private String userTel;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;


    public void setUserTel(String userTel) {
        if (StrUtil.isBlank(userTel)) {
            this.userTel = userTel;
        } else {
            this.userTel = DesensitizedUtil.mobilePhone(userTel);
        }

    }
}
